<div th:fragment="talkViewHTML">



	<!--标题部分-->
	<div class="title-view">
		<span class="title-text" id="sceneTitle"></span>

		<div class="clean-chat" id="cleanIsOpen" onclick="cleanChatRecord()" hidden>
			<i class="layui-icon layui-icon-delete" style="font-size: 17px;"></i> <span id="cleanTxt"></span>
		</div>
	</div>

	<!--会话部分-->
	<div class="chat-view" id="chat_page">

		<!--加载更多文案-->
		<div style="width: 100%;">
			<div class="check-more" id="moreRecord">
				<a class="check-more-txt" id="moreRecordBtn" onclick="getMoreRecord()"><span id="moreRecordTxt"></span></a>
				<span id="noMoreRecordTxt" hidden></span>
				<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop icon-loading-set" id="moreRecordLoading" hidden></i>
			</div>
		</div>

		<!--聊天页面-->
		<div id="chat_view">

		</div>


	</div>



	<!--底部输入框部分-->
	<div class="input-view">
		<!--输入框头部选项部分-->
		<div class="layui-row" style="width: 78%;margin: 0 auto;margin-bottom: 10px;">
			<div class="layui-col-xs6" >
				<span id="selectSceneTxt" >场景：</span>
				<a style="color: #2468F2;cursor: pointer;" id="sceneName" onclick="chooseSceneOpen();"></a>
			</div>
			<div class="layui-col-xs6" hidden id="questionTemplateIsOpen">
				<a style="float: right;color: #2468F2;cursor: pointer;" id="questionTemplateTxt" onclick="setChooseTemplate();">选择提示词模版</a>
			</div>
		</div>
		<!--输入框-->
		<div class="layui-row input-main">
			<div class="layui-col-xs12">
				<textarea name="inputPrompt" id="inputPrompt" class="layui-textarea input-set" wrap="soft"></textarea>
				<div><span id="textCount">0</span>/<span id="inputMaxTxt">0</span></div>
			</div>
		</div>
		<!--输入框底下选项部分-->
		<div class="layui-row input-main">
			<div class="layui-col-xs10 layui-form">
				<div class="layui-row">
					<div class="layui-col-md3" id="knowledgeBaseIsOpen" hidden>
						<div class="layui-form-item">
							<label class="checkbox-text" id="knowledgeBaseIsTxt"></label>
							<div class="layui-input-block">
								<input type="checkbox" name="open" lay-skin="switch" lay-filter="switch-knowledgeBase" title="开|关" checked>
							</div>

						</div>
					</div>
					<div class="layui-col-md3" id="modelRoleIsOpen" hidden>
						<div class="layui-form-item">
							<label class="checkbox-text" id="modelRoleTxt"></label>
							<div class="layui-input-block">
								<input type="text" maxlength="5" name="userSetAiName" id="userSetAiName" lay-verify="required" autocomplete="off" class="layui-input input-buttom" value="" >
							</div>
						</div>

					</div>


                    <div class="layui-col-md3" >
                        <div class="layui-form-item">
                            <label class="layui-form-label" id="aiModelTxt">选择模型</label>
                            <div class="layui-input-block" id="chooseModel">
								<!--
                                <select name="interest" lay-filter="chooseAiModel" >
                                    <option value=""></option>
                                    <option value="1">逸知道问答模型1</option>
                                </select>-->
                            </div>
                        </div>
                    </div>

				</div>

			</div>

			<div class="layui-col-xs2" id="sentBtn"><button class="send-btn" onclick="sentQuestion()"></button></div>
		</div>

	</div>

	<input type="hidden" name="sceneId" id="sceneId" value=""><!--场景id-->
	<input type="hidden" name="headType" id="headType" value=""><!--头像相关-->
	<input type="hidden" name="inputMax" id="inputMax" value=""><!--底部输入框输入字数限制-->
	<input type="hidden" name="userChatTimes" id="userChatTimes" value=""><!--用户每日问答次数限制-->
	<input type="hidden" name="userChatOverPrompt" id="userChatOverPrompt" value=""><!--用户到达次数限制时的提示文案-->
	<input type="hidden" name="prologue" id="prologue" value=""><!--开场白设置-->
	<input type="hidden" name="sorryTxt" id="sorryTxt" value=""><!--模型无法回答时的提示语-->
	<input type="hidden" name="prologueOriginal" id="prologueOriginal" value=""><!--开场白设置-原有不带模型名-->
	<input type="hidden" name="sorryTxtOriginal" id="sorryTxtOriginal" value=""><!--模型无法回答时的提示语-原有不带模型名-->
	<input type="hidden" name="praiseTxt" id="praiseTxt" value=""><!--点赞按钮提示文案-->
	<input type="hidden" name="treadTxt" id="treadTxt" value=""><!--点踩按钮提示文案-->
	<input type="hidden" name="evaluateBack" id="evaluateBack" value=""><!--评价反馈文案-->
	<input type="hidden" name="evaluateError" id="evaluateError" value=""><!--评价反馈错误时的文案-->

	<input type="hidden" name="chatCount" id="chatCount" value=""><!--用户当天已使用的对话次数-->
	<input type="hidden" name="loginUserId" id="loginUserId" value=""><!--登录的用户ID-->
	<input type="hidden" name="headTypeHtml" id="headTypeHtml" value=""><!--ai头像html-->
	<input type="hidden" name="isKnowledgeBase" id="isKnowledgeBase" value=""><!--是否知识库（0否，1是）-->
	<input type="hidden" name="modelRoleIsOpenVal" id="modelRoleIsOpenVal" value=""><!--模型名称自定义是否开启（0否，1是）-->
	<input type="hidden" name="mdelDefaultName" id="mdelDefaultName" value=""><!--模型默认名称-->
	<input type="hidden" name="beginRow" id="beginRow" value=""><!--开始条数-->
	<input type="hidden" name="cleanPrompt" id="cleanPrompt" value=""><!--点击清空按钮时的提示文案-->
	<input type="hidden" name="headColor" id="headColor" value=""><!--头像颜色-->
	<input type="hidden" name="headImagePath" id="headImagePath" value=""><!--头像图片链接-->
	<input type="hidden" name="moreRecordText" id="moreRecordText" value=""><!--加载更多文案-->
	<input type="hidden" name="isSenting" id="isSenting" value="0"><!--是否正在发送-->
	<input type="hidden" name="aiModelId" id="aiModelId" value=""><!--ai模型id-->
	<input type="hidden" name="embeddingBackCount" id="embeddingBackCount" value=""><!--向量数据库调用个数-->
	<input type="hidden" name="embeddingBackSource" id="embeddingBackSource" value=""><!--置信度（0-1），为0时表示不设置置信度-->

</div>
